/*
 * @Author: Terry
 * @Date: 2024-11-28 11:25:13
 * @LastEditors: Terry
 * @LastEditTime: 2024-11-29 01:07:29
 * @Description: file content
 * @FilePath: \auxface_bi\src\utils\globalComponents.js
 */
// 公共组件-导航栏
import navbar from '@/components/navbar.vue'
// 公共组件-菜单栏
import auxAside from '@/components/auxAside.vue' 
// 公共组件-导底部
import foot from '@/components/footer.vue' 
// 公共组件-添加修改弹窗组件
import dialogPopUp from '@/components/dialogPopUpV2.vue'
// 公共组件-表格
import tables from '@/components/tables.vue'
// 数组翻译组件
import DictTag from '@/components/dictTag'
// 弹窗
import YDialog from '@/components/dialog'
// 分页
import pagination from '@/components/pagination'

const components = {
    navbar,
    auxAside,
    foot,
    dialogPopUp,
    tables,
    DictTag,
    YDialog,
    pagination,
}

export default {
    install(Vue) {
        // 全局组件挂载
        Object.entries(components).forEach(([key, component]) => {
            Vue.component(key, component)
        })
    }
}